package com.JZ.QM.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.JZ.QM.common.utils.PageUtils;
import com.JZ.QM.common.utils.Query;

import com.JZ.QM.common.dao.StrategyDao;
import com.JZ.QM.common.entity.StrategyEntity;
import com.JZ.QM.service.StrategyService;

/**
 *
 *
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020-06-14 11:19:36
 */
@Service("strategyService")
public class StrategyServiceImpl extends ServiceImpl<StrategyDao, StrategyEntity> implements StrategyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) throws Exception {
        IPage<StrategyEntity> page = this.page(
                new Query<StrategyEntity>().getPage(params),
                new QueryWrapper<StrategyEntity>()
        );

        return new PageUtils(page);
    }

}